package com.njwb.service.impl;

import com.njwb.mapper.EmpMapper;
import com.njwb.pojo.Emp;
import com.njwb.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    @Override
    public void add(Emp emp) {
        empMapper.insert(emp);
//        int i = 1/0;
    }
}
